#ifndef ENCODER_H
#define ENCODER_H
#include <QImage>
#include <QProcess>
#include <QDir>
#include <QDebug>
#include <QHash>
#include <QObject>
class Encoder : public QObject
{
    Q_OBJECT

public:
    Encoder(QString encoderPath,QObject* parent);
    Encoder();
    bool encode(QHash<QString,QString> arguments);
    ~Encoder();

protected:
    QString encoderPath;
    QString program;
    QProcess* process;
    QImage img;
    QString tempFile;


signals:
    void imageLoaded(QImage);

protected slots:
    void sendImage();

};

#endif // ENCODER_H
